package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@ToString
public class Employee {
    private Long id;

    private String name;

    private String password;

    private String email;

    private Integer age;

    private boolean admin; // 使用基本类型boolean

    private boolean status = true; // 判断员工是否在职状态

    // 关联部门id
    private Department dept;

    // 关联角色(一个员工有多个角色)
    private List<Role> roles = new ArrayList<>();


}